home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / lib / geometry / transform3 / tm3conjugate.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-26  |  1.2 KB  |  37 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /* Authors: Charlie Gunn, Pat Hanrahan, Stuart Levy, Tamara Munzner, Mark Phillips */
  11.  
  12. #include "transform3.h"
  13.  
  14. /*-----------------------------------------------------------------------
  15.  * Function:    Tm3Conjugate
  16.  * Description:    conjugate one transform by another
  17.  * Args:    T: one transform ("conjugatee") (INPUT)
  18.  *        Tcon: another transform ("conjugater") (INPUT)
  19.  *        Tres: the result
  20.  * Returns:    nothing
  21.  * Author:    mbp
  22.  * Date:    Thu Aug  8 15:42:41 1991
  23.  * Notes:    Sets Tres = Inverse[Tcon} * T * Tcon
  24.  */
  25. void
  26. Tm3Conjugate( T, Tcon, Tres )
  27.     Transform3 T, Tcon, Tres;
  28. {
  29.     Transform3 Tconinv;
  30.  
  31.     /* We actually use adjoint instead of inverse, because the det
  32.        factors would cancel out anyway */
  33.     Tm3Adjoint( Tcon, Tconinv );
  34.     Tm3Concat( Tconinv, T, Tres );
  35.     Tm3Concat( Tres, Tcon, Tres );
  36. }
  37.